fix: resolve issue with add overwriting existing files #92#101
fix: resolve issue with add overwriting existing files #92#101S4tvara merged 4 commits intoS4tvara:mainfrom
add overwriting existing files #92#101Conversation
- Updated `builder.go` to ask for confirmation when overwriting existing vault files (skip overwriting by default) - Updated `add.go` to ignore skipped files - Updated vault files to follow `<location>.<filename>.yaml` convention to avoid conflicts with duplicate files
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Hi @Udayan853 , please add proper test coverage, Cheers, |
- Added unit test for `ConfirmOverwrite` - Modified `StoreFileManifest` in `builder.go` to use `ConfirmOverwrite`
|
Hey @SubstantialCattle5 I have added a unit test for confirmation prompt, |
|
Ah, nevermind -- I initially thought that 100% coverage would be needed, since only 11.60% is needed I suppose this should be good |
|
@Udayan853 , Cheers! |
I do need help with total test coverage lemme know if you wanna pick that up! |
add overwriting existing filesadd overwriting existing files #92
This has already been taken up in #69. |
|
@Udayan853, Cheers, |
@Udayan853, |
Changes
builder.goto ask for confirmation when overwriting existing vault files (skip by default)add.goto ignore skipped filesdelete.goto be consistent with new.yamlfile convention<location>.<filename>.yamlconvention to avoid conflicts with duplicate filesFixes #92